"use strict";
//创建类
var City = /** @class */ (function () {
    //给成员变量赋值
    function City(name, level) {
        //成员变量(创建时直接给初始值,要么在构造函数给赋值)
        this.ccName = "";
        this.cclevel = 1;
        this.ccName = name;
        this.cclevel = level;
    }
    //成员方法
    City.prototype.ccabout = function () {
        console.log("welcome " + this.ccName + ",this is place is too danger" + this.cclevel);
    };
    return City;
}());
//创建方法
var c1 = new City("p城", 5);
console.log(c1.ccName);
console.log(c1.ccabout());
